package com.slfx.function.permission.mapper;

import com.slfx.function.permission.entity.SystemMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author slfx
 * @since 2023-01-02
 */
public interface SystemMenuMapper extends BaseMapper<SystemMenu> {

    /**
     * 获取到用户的菜单
     * @param userCode
     * @return
     */
    List<SystemMenu> getUserMenu(@Param("userCode") String userCode);
}
